package org.aplikator.client.descriptor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


@SuppressWarnings("serial")
public class FormDTO extends ClientDescriptorBase {



    private List<PropertyDTO<? extends Serializable>> properties = new ArrayList<PropertyDTO<? extends Serializable>>();

    private WidgetDTO layout;

    @SuppressWarnings("unused")
    private FormDTO() {
    }

    public FormDTO(String id, String localizedName) {
        super(id, localizedName);
    }

    public List<PropertyDTO<? extends Serializable>> getProperties() {
        return properties;
    }

    public FormDTO addProperty(PropertyDTO<? extends Serializable> property) {
        properties.add(property);
        return this;
    }

    public WidgetDTO getLayout() {
        return layout;
    }

    public void setLayout(WidgetDTO layout) {
        this.layout = layout;
    }

}
